package com.java.shop.product.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.java.shop.product.entity.AttrGroupEntity;
import com.java.shop.product.webvo.SkuItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author cxq
 * @email 137512476@qq.com
 * @date 2021-03-26 11:19:52
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {
	IPage<AttrGroupEntity> getMyList(IPage<AttrGroupEntity> page, @Param(Constants.WRAPPER) Wrapper<AttrGroupEntity> queryWrapper);

	List<SkuItemVo.SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
